home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_id-utils.idb / usr / freeware / bin / syms.id.z / syms.id
Encoding:
Text File  |  1998-10-28  |  588 b   |  35 lines

  1. #!/bin/sh
  2. #
  3. # build a new ID database file
  4. #
  5. # Usage: syms.id [src-list]
  6. #   Where src-list is a file containing full pathnames of all files to analyze.
  7. #   The default is "./SRCFILES". The database will be placed in the same 
  8. #   directory as src-list.
  9. #
  10.  
  11. #
  12. # Make sure an input list file was specified
  13. #
  14. SrcList=${1:-SRCFILES}
  15. BaseDir=`dirname $SrcList`
  16.  
  17. #
  18. # Switch to the base directory
  19. #
  20. cd $BaseDir
  21.  
  22. #
  23. # Remove the old database file
  24. #
  25. rm -f ID
  26.  
  27. #
  28. # Generate the actual ID database file
  29. #
  30. echo "Generating ID database file..."
  31. sed    -e "s%^$BaseDir/%%"    \
  32.     $SrcList        \
  33. | sort -u | mkid
  34.  
  35.